#include "m61850widget.h"
#include "bean.h"

extern _61850 m61850;

M61850Widget::M61850Widget(QWidget *parent) :
    QWidget(parent)
{
    setupUi(this);

    connect(backBtn,SIGNAL(clicked()),this,SLOT(back()));
    connect(nextBtn,SIGNAL(clicked()),this,SLOT(next()));
}


void M61850Widget::next()
{
    QString iedName=IEDNameText->text().trimmed();
    if(iedName=="")
    {
        QMessageBox::about(this,tr("提示"),tr("IEDName不能为空!"));
        return;
    }
    m61850.iedName=IEDNameText->text();
    emit mystep(1);

}

void M61850Widget::back()
{
    emit mystep(-1);
}

